//
//  NSDictionary+NSNullValue.m
//  KIASupervisory
//
//  Created by tan_xin on 14-7-30.
//  Copyright (c) 2014年 MyCompany. All rights reserved.
//

#import "NSDictionary+NSNullValue.h"

@implementation NSDictionary (NSNullValue)

- (id)objectForKey:(id)aKey {
    id value = [self objectForKey:aKey];
    if ([value isKindOfClass:[NSNull class]]) {
        value = @"";
    }
    return value;
}

- (id)objectForKeyOrNil:(id)key {
    id value = [self objectForKey:key];
    if ([value isKindOfClass:[NSNull class]]) {
        return nil;
    }
    return value;
}

@end
